//
//  STBaseCollectionView.h
//  赛拓
//
//  Created by 王磊 on 7/28/16.
//  Copyright © 2016 立金所. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "STBaseViewDelegate.h"
#import "STBaseCollectionLayout.h"
@interface STBaseCollectionView : UICollectionView

@property (nonatomic ,strong) NSMutableArray *dataArray;

@property (nonatomic ,weak) id<STBaseViewDelegate>mDelegate;

+ (instancetype)instance;

@property (nonatomic ,strong) STBaseCollectionLayout *layout;


+ (instancetype)instanceWithFrame:(CGRect)frame;

+ (instancetype)instanceWithcollectionViewLayout:(UICollectionViewLayout *)layout;

- (void)commitInit;

- (void)firstLoadData:(id)data;

- (void)updateData:(id)data;

- (void)updateData:(id)data forIndexPath:(NSIndexPath *)indexPath;

- (void)appendData:(id)data;
//  更新头部视图
- (void)updateHeader:(id)data;
// 更新脚部视图
- (void)updateFooter:(id)date;

@end